package com.atguigu.mapper;

import com.atguigu.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-02-05
 * @Description:
 * @Version: 1.0
 */
@Mapper
public interface EmpMapper {
    /**
    * @Author:liuaojun
    * @Date:2025-02-05 19:50
    * @Description:增加
    */
    void insertEmp(Emp emp);

    /**
    * @Author:liuaojun
    * @Date:2025-02-05 19:57
    * @Description:按Id修改
    */
    void updateEmp(Emp emp);

    /**
    * @Author:liuaojun
    * @Date:2025-02-05 20:03
    * @Description:删除
    */
    void deleteEmp(Integer eid);

    /**
    * @Author:liuaojun
    * @Date:2025-02-05 20:07
    * @Description:按照Id查询
    */
    Emp selectEmp(Integer eid);

    /**
    * @Author:liuaojun
    * @Date:2025-02-05 20:14
    * @Description:查询所有
    */
    List<Emp> selectAllEmp();

}
